package com.snowfield.lbcommon.velocity.haproxy;

/**
 * frontend 或 listen 中增加的cookie对象
 */
public class FECookie {
    private String name;
    private Boolean insert = Boolean.TRUE;
    private Boolean indirect = Boolean.TRUE;
    private Boolean nocache = Boolean.TRUE;
    private Boolean httponly = Boolean.TRUE;
    private Boolean secure = Boolean.TRUE;
    private String maxidle = "1d";
    private String maxlife = "1d";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getInsert() {
        return insert;
    }

    public void setInsert(Boolean insert) {
        this.insert = insert;
    }

    public Boolean getIndirect() {
        return indirect;
    }

    public void setIndirect(Boolean indirect) {
        this.indirect = indirect;
    }

    public Boolean getNocache() {
        return nocache;
    }

    public void setNocache(Boolean nocache) {
        this.nocache = nocache;
    }

    public Boolean getHttponly() {
        return httponly;
    }

    public void setHttponly(Boolean httponly) {
        this.httponly = httponly;
    }

    public Boolean getSecure() {
        return secure;
    }

    public void setSecure(Boolean secure) {
        this.secure = secure;
    }

    public String getMaxidle() {
        return maxidle;
    }

    public void setMaxidle(String maxidle) {
        this.maxidle = maxidle;
    }

    public String getMaxlife() {
        return maxlife;
    }

    public void setMaxlife(String maxlife) {
        this.maxlife = maxlife;
    }
}